local function Round(number)
    local sign = number >= 0 and 1 or -1
    number = math.abs(number)
    local decimal = number % 1
    local integer = number - decimal
    if decimal > 0.5 then
        integer = integer + 1
    end
    return integer * sign
end

local function PointContact(x1, y1, x2, y2, width, height)
    return math.abs(x1 - x2) < width and math.abs(y1 - y2) < height
end

local function YContact(y1, y2, height)
    return math.abs(y1 - y2) < height
end

return {Round = Round, PointContact = PointContact, YContact = YContact}
